import com.hjy.service.SomeService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Map;

public class ConsumerRun {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-consumer.xml");
        SomeService someService = (SomeService) context.getBean("someService");
        String hjy = someService.hello("hjy");
        System.out.println("test:"+ hjy);
    }
}
